themingbackground: Outset shadows require border box
authorBenjamin Otte <otte@redhat.com>
Fri, 23 May 2014 17:27:53 +0000 (19:27 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 23 May 2014 17:29:27 +0000 (19:29 +0200)
They are drawn relative to the border box, not relative to the padding
box.

gtk/gtkthemingbackground.c

index 706752b082431adc01175140c512e9fc2ed50a2f..380eb5ad1ee694d28f7d10a4229492fb2d11a18e 100644 (file)
@@ -270,7 +270,7 @@ _gtk_theming_background_apply_shadow (GtkThemingBackground *bg,
 {
   _gtk_css_shadows_value_paint_box (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BOX_SHADOW),
                                     cr,
-                                    &bg->padding_box,
+                                    inset ? &bg->padding_box : &bg->border_box,
                                     inset);
 }